package com.kailong.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kailong.entity.sys.UserConditionEntity;
import com.kailong.entity.sys.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * created by kailong on 2025/8/4
 */
@Mapper
public interface Usermapper extends BaseMapper<UserEntity> {
    @Select("SELECT * FROM sys_user WHERE user_name = #{username}")
    UserEntity selectByUsername(String username);

    /**
     * 根据条件查询用户列表
     * @param userConditionEntity 用户查询条件
     * @return 用户列表
     */
    List<UserEntity> searchByCondition(UserConditionEntity userConditionEntity);
}

